package com.elai.tags.domain;

import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.elai.common.annotation.Excel;
import com.elai.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 用户分群对象 base_user_portrait
 *
 * @author elai
 * @date 2021-10-09
 */
public class BaseUserPortrait extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Integer id;

    /** 分群名称 */
    @Excel(name = "分群名称")
    private String name;

    /** 分群显示名称 */
    @Excel(name = "分群显示名称")
    private String displayName;

    /** 更新方式 */
    @Excel(name = "更新方式")
    private String updateType;

    /** 更新类型按天 */
    @Excel(name = "更新类型按天")
    private String taskType;

    /** 分群规则 */
    @Excel(name = "分群规则")
    private String portraitRule;

    /** 预估类型 */
    @Excel(name = "预估类型")
    private String reckonType;

    /** 预估值 */
    @Excel(name = "预估值")
    private Integer reckonValue;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    /** 最后计算状态 */
    @Excel(name = "最后计算状态")
    private String lastCalcStatus;

    /** 类型 */
    @Excel(name = "类型")
    private String type;

    /** 所属用户 */
    @Excel(name = "所属用户")
    private Long userId;

    /** 限制返回数量Y是N否 */
    @Excel(name = "限制返回数量Y是N否")
    private String limitFlag;

    /** 创建方式 */
    @Excel(name = "创建方式")
    private String buildType;

    /** 用户属性 */
    @Excel(name = "用户属性")
    private String userAttribute;

    /** 查询时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "查询时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date resultTime;

    /** 查询结果 */
    @Excel(name = "查询结果")
    private Long resultNum;

    /** 结果占比 */
    @Excel(name = "结果占比")
    private Long resultPercent;

    /** 画像组件信息 */
    private List<BaseUserPortraitCompents> portraitTemplateItems;

    public List<BaseUserPortraitCompents> getPortraitTemplateItems() {
        return portraitTemplateItems;
    }

    public void setPortraitTemplateItems(List<BaseUserPortraitCompents> portraitTemplateItems) {
        this.portraitTemplateItems = portraitTemplateItems;
    }

    public void setId(Integer id)
    {
        this.id = id;
    }

    public Integer getId()
    {
        return id;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setDisplayName(String displayName)
    {
        this.displayName = displayName;
    }

    public String getDisplayName()
    {
        return displayName;
    }
    public void setUpdateType(String updateType)
    {
        this.updateType = updateType;
    }

    public String getUpdateType()
    {
        return updateType;
    }
    public void setTaskType(String taskType)
    {
        this.taskType = taskType;
    }

    public String getTaskType()
    {
        return taskType;
    }
    public void setPortraitRule(String portraitRule)
    {
        this.portraitRule = portraitRule;
    }

    public String getPortraitRule()
    {
        return portraitRule;
    }
    public void setReckonType(String reckonType)
    {
        this.reckonType = reckonType;
    }

    public String getReckonType()
    {
        return reckonType;
    }
    public void setReckonValue(Integer reckonValue)
    {
        this.reckonValue = reckonValue;
    }

    public Integer getReckonValue()
    {
        return reckonValue;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setLastCalcStatus(String lastCalcStatus)
    {
        this.lastCalcStatus = lastCalcStatus;
    }

    public String getLastCalcStatus()
    {
        return lastCalcStatus;
    }
    public void setType(String type)
    {
        this.type = type;
    }

    public String getType()
    {
        return type;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setLimitFlag(String limitFlag)
    {
        this.limitFlag = limitFlag;
    }

    public String getLimitFlag()
    {
        return limitFlag;
    }
    public void setBuildType(String buildType)
    {
        this.buildType = buildType;
    }

    public String getBuildType()
    {
        return buildType;
    }
    public void setUserAttribute(String userAttribute)
    {
        this.userAttribute = userAttribute;
    }

    public String getUserAttribute()
    {
        return userAttribute;
    }
    public void setResultTime(Date resultTime)
    {
        this.resultTime = resultTime;
    }

    public Date getResultTime()
    {
        return resultTime;
    }
    public void setResultNum(Long resultNum)
    {
        this.resultNum = resultNum;
    }

    public Long getResultNum()
    {
        return resultNum;
    }
    public void setResultPercent(Long resultPercent)
    {
        this.resultPercent = resultPercent;
    }

    public Long getResultPercent()
    {
        return resultPercent;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("displayName", getDisplayName())
            .append("remark", getRemark())
            .append("updateType", getUpdateType())
            .append("taskType", getTaskType())
            .append("portraitRule", getPortraitRule())
            .append("reckonType", getReckonType())
            .append("reckonValue", getReckonValue())
            .append("status", getStatus())
            .append("lastCalcStatus", getLastCalcStatus())
            .append("type", getType())
            .append("userId", getUserId())
            .append("limitFlag", getLimitFlag())
            .append("buildType", getBuildType())
            .append("userAttribute", getUserAttribute())
            .append("resultTime", getResultTime())
            .append("resultNum", getResultNum())
            .append("resultPercent", getResultPercent())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
